package com.mutual.reins.interf.service.impl;

import com.mutual.reins.interf.entity.ReinsPolicyCeded;
import com.mutual.reins.interf.mapper.ReinsPolicyCededMapper;
import com.mutual.reins.interf.service.IReinsPolicyCededService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author CodeGenerate
 * @since 2021-03-31
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class ReinsPolicyCededServiceImpl extends ServiceImpl<ReinsPolicyCededMapper, ReinsPolicyCeded> implements IReinsPolicyCededService {
    @Autowired
    private  ReinsPolicyCededMapper reinsPolicyCededMapper;

    /**
     * 按照投保单号查询一条
     *
     * @param proposalNo 投保单号号
     * @return 返回该对象
     */
    @Override
    public ReinsPolicyCeded findByProposalNo(String proposalNo) {
        return reinsPolicyCededMapper.findByProposalNo(proposalNo);
    }
}
